#include<iostream>
using namespace std;
typedef long long LL;
LL a, b, n;
int main()
{
	cin >> a >> b >> n;
	a %= b;
	for (int i = 1; i <= n + 2; i++) {
		a = a * 10;
		if (i >= n) {
			cout << a / b;
		}
		a %= b;
	}
	/*int ans = 0;
	for (int i = 1; i <= n; i++) {
		a = a * 10;
		if (i == n) {
			ans = a / b;
		}
		a %= b;
	}
	cout << ans << endl;
	a = ans % b;
	for (int i = 0; i < 3; i++) {
		a = a * 10;
		cout << a / b;
		a %= b;
	}*/
	return 0;
}